<style>
    table.tecspec {
        width: 100%;
        max-width: 100%;
        border-bottom: 1px solid #dddddd;
    }
    table.tecspec>tbody>tr>th,table.tecspec>tbody>tr>td{
        padding: 8px;
        line-height: 1.42857143;
        vertical-align: top;
        border-top: 1px solid #ddd;
    }
    table.tecspec>tbody>tr>th{
        border-right: 1px solid #ddd;
    }
</style>
<?php $this->load->view('templates/backend/header'); ?>
<h3><?php echo $this->lang->line('listcustomer_detail');?></h3><a href="javascript:history.back(1)">Back</a>

<?php
if(!empty($info)){
    ?>
        <table class="tecspec">
            <tbody>
            <tr>
              <th style="width:25%"><?php echo $this->lang->line('name');?></th>
              <td width="75%"><?php echo $info->name;?></td>
            </tr>
            <tr>
              <th><?php echo $this->lang->line('address');?></th>
              <td><?php echo $info->address;?></td>
            </tr>
             <tr>
              <th><?php echo $this->lang->line('phone');?></th>
              <td>
                  <?php echo $phone;?>
              </td>
            </tr>
            <tr>
              <th><?php echo $this->lang->line('birthday');?></th>
              <td><?php echo ($info->birthday != '00-00-0000')?date("d-m-Y",strtotime($info->birthday)):'';?></td>
            </tr>
            
            <tr>
              <th><?php echo $this->lang->line('skype');?></th>
              <td><?php echo $social->skype;?></td>
            </tr>
            <tr>
              <th><?php echo $this->lang->line('yahoo');?></th>
              <td><?php echo $social->yahoo;?></td>
            </tr>
            <tr>
              <th><?php echo $this->lang->line('email');?></th>
              <td><?php echo $social->email;?></td>
            </tr>
            <tr>
              <th><?php echo $this->lang->line('facebook');?></th>
              <td><?php echo $social->facebook;?></td>
            </tr>
            
            <tr>
              <th><?php echo $this->lang->line('province');?></th>
              <td><?php echo $info->province;?></td>
            </tr>
            <tr>
              <th><?php echo $this->lang->line('info_bill');?></th>
              <td><?php echo $info->info_bill;?></td>
            </tr>
            <tr>
              <th><?php echo $this->lang->line('totalMoneyKH');?></th>
              <td><?php echo $this->bookinglib->my_number_format($info->totalMoneyBooking, 2, ',', ',').' VNĐ';?></td>
            </tr>
            <tr>
              <th><?php echo $this->lang->line('surplus');?></th>
              <td><?php echo $this->bookinglib->my_number_format($info->surplus, 2, ',', ',').' VNĐ';?></td>
            </tr>
            <tr>
              <th><?php echo $this->lang->line('created');?></th>
              <td><?php echo ($info->lastBooking != '0000-00-00 00:00:00')?date("d-m-Y H:i:s",strtotime($info->lastBooking)):'';?></td>
            </tr>
            <tr>
              <th><?php echo $this->lang->line('note');?></th>
              <td><?php echo $info->note;?></td>
            </tr>
            <tr>
              <th><?php echo $this->lang->line('booker');?></th>
              <td><?php echo $info->username;?></td>
            </tr>
            <tr>
              <th><?php echo $this->lang->line('lastupdated');?></th>
              <td><?php echo date("d-m-Y H:i:s",$info->lastupdated);?></td>
            </tr>
             <tr>
              <th><?php echo $this->lang->line('agent_code');?></th>
              <td><?php echo $info->agent_code;?></td>
            </tr>
          </tbody>
        </table>
    <?php
} else {
    echo 'Không tìm thấy dữ liệu! Vui lòng thử lại sau';
}
?>
<div class="table">
    <span id="simple-content"></span>
</div>
<?php $this->load->view('templates/backend/footer'); ?>